package com.example.condition;

import org.springframework.stereotype.Component;

/**
 * @author 段誉
 * @create 2019-02-20 10:19
 */
//当这里通过自定义实现了JdbcFactory所以会打印msql...create不会再走那两个defaultFactory
@Component
public class MysqlFactory implements JdbcFactory {
  @Override
  public void create() {
    System.out.println("mysql......create");
  }
}
